package com.itheima03;

/**
 * @author Xiao
 * @date 2021/7/10
 */
public class Cat extends Animal implements Jumpping {
    // Ctrl + I     快速重写接口方法
    //Ctrl + O      快速重写父类方法
    @Override
    public void jump() {
        System.out.println(getAge() + "岁的" + getName() + "可以跳高了");
    }

    @Override
    public void eat() {
        System.out.println(getAge() + "岁的" + getName() + "爱吃鱼");
    }

    public Cat() {
    }

    public Cat(String name, int age) {
        super(name, age);
    }
}
